package com.ceshiren.hogwarts.app.contact;

import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;

public class BasePage {
    public  AndroidDriver androidDriver;

    BasePage(AndroidDriver androidDriver){
        this.androidDriver = androidDriver;
    }

    public BasePage() {
    }

    public void click(By by){
        androidDriver.findElement(by).click();
    }

    public void sendKeys(By by,String content){
        androidDriver.findElement(by).sendKeys(content);

    }
}
